Creates a deep clone of the specified object, also creating clones of all referenced child and nested objects.
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Shared Function DeepClone(Of T)( _
ByVal objectGraph As T _
) As T |
Visual Basic (Usage) | Copy Code |
---|
Dim objectGraph As T
Dim value As T
value = ReflectionCloner.DeepClone(Of T)(objectGraph) |
Parameters
- objectGraph
- Object that will be cloned
Type Parameters
- T
- Type of the object that will be cloned
Return Value
A deep clone of the provided object
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also